const express = require("express");
const { findAboutService, updateAboutService } = require("../service/aboutService");
const router = express.Router();

// 获取关于我数据
router.get("/", async function (req, res, next) {
  res.send(await findAboutService());
})

// 更该关于我数据
router.put("/", async function (req, res, next) {
  res.send(await updateAboutService(req.body));
})

module.exports = router;